home *** CD-ROM | disk | FTP | other *** search
- ; *** WebFTP installation script ***
-
-
- ; *** Set some useful messages ***
-
- (set app-name "WebFTP")
- (set #install-msg (cat "\n\nWebFTP installation.\n\n"
- "Read the documentation for\n"
- "more information on usage.\n\n"
- "WebFTP © 1998 Zap Systems.\n"
- "All rights reserved."))
- (set #welcome-msg "Welcome to the WebFTP installation!")
- (set #bad-kick "You must be using Kickstart 3.0 to use this program!")
- (set #bad-installer "You must be using Installer 43.x to install WebFTP!")
- (set #ask-program-dir "Where shall I install the program ?\n(A directory will be created)")
- (set #ask-html-dir "Where shall I assign your html directory to?")
- (set #html-name "LocalHTML")
- (set #prog-name "WebFTP_DEMO")
-
- ; *** Welcome the user to the installation
-
- (message #install-msg)
-
- ; *** Check for Kickstart version ***
-
- (if (< (/ (getversion) 65536) 39)
- (
- (abort #bad-kick)
- )
- )
-
- ; *** Check for Installer-Version ***
-
- (if (< (/ @installer-version 65536) 43)
- (
- (abort #bad-installer)
- )
- )
-
-
- ; *** Ask the user for the default-destinations ***
-
- (set #prog-dest (askdir (prompt #ask-program-dir)
- (help @askdir-help)
- (default "INet:")
- ;(disk)
- )
- )
- (set #prog-dir (tackon #prog-dest #prog-name)
- )
- (makedir #prog-dir)
-
-
- ; *** Ask the user for the html dir ***
-
- (set #html-source (askdir (prompt #ask-html-dir)
- (help @askdir-help)
- (default "LocalHTML:")
- ;(disk)
- )
- )
- (makeassign #html-name #html-source)
-
-
- ; *** Copy the program ***
-
- (copyfiles (prompt #copyfiles)
- (source "")
- (dest #prog-dir)
- (choices "WebFTP_DEMO" "WebFTP_DEMO.info" "WebFTP_DEMO.guide" "WebFTP_DEMO.guide.info")
- )
-
-
- ; *** Keyfile install ***
-
- (if (exists "WebFTP.key" (NOREQ) )
- (
- (copyfiles (prompt @copyfiles-help)
- (source "")
- (dest #prog-dir)
- (choices "WebFTP.key")
- )
- )
- )
-
-
- ; *** Ignore file install ***
-
- (if (exists "WebFTP.ignore" (NOREQ) )
- (
- (copyfiles (prompt @copyfiles-help)
- (source "")
- (dest #prog-dir)
- (choices "WebFTP.ignore")
- )
- )
- )
-
- ; *** Add assigns to the user-startup
-
- (set add-to-startup ( cat
- "Assign LocalHTML: "#html-source"\n"
- )
- )
-
- (startup #prog-name (prompt "Writing the assign to your user-startup")
- (help @startup-help)
- (command add-to-startup)
- )
-
-